<script setup>
import { useStore } from '@/store/index.js';
import { computed } from 'vue';

const Store = useStore();
const doubleCount = computed(() => Store.doubleCount);
</script>

<template>
  <div>
    <p>Count: {{ Store.count }}</p>
    <p>Double Count: {{ doubleCount }}</p>
    <button @click="Store.increment()">Increment</button>
  </div>
</template>